
<?php
	require_once("connect_sql.php");
	
	$sql = "select * from rfpa";
	$result = mysql_query($sql);
	if(!$result) echo mysql_error();
	while($row = mysql_fetch_array($result)) {
		printf("<div class=\"radioItem\"><input type=\"radio\" name=\"rfpa\" value=\"%d\"/><label>%s</label></div>", $row['id'], $row['name']);
	}
	//<div class="radioItem"><input type="radio" name="rfpa" value="1"/><label>AP5200</label></div>
?>